package com.dd.cloud.user.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dd.cloud.user.entity.admin.AdminSaleInfo;
import com.dd.cloud.user.req.admin.AdminSaleInfoPageReq;
import com.dd.cloud.user.res.admin.AdminSaleInfoDetailRes;
import com.dd.cloud.user.res.admin.AdminSaleInfoPageRes;
import org.apache.ibatis.annotations.Param;

/**
 * @author Lx
 * @version 1.0
 */
public interface AdminSaleInfoMapper extends BaseMapper<AdminSaleInfo> {
    /**
     * 查询管理员销售列表
     *
     * @param iPage
     * @param req
     * @return
     */
    IPage<AdminSaleInfoPageRes> queryAdminSaleInfoPage(IPage<?> iPage, @Param("req") AdminSaleInfoPageReq req);

    /**
     * 查询销售管理员详情
     *
     * @param saleId
     * @return
     */
    AdminSaleInfoDetailRes queryAdminSaleInfoDetail(@Param("saleId") Integer saleId,
                                                    @Param("status") Integer status);
}
